After the Adwaita refresh, the button shows up oval rather than
circular. To address this, make sure that the "image-button" class
is applied as well by using the dedicated setter function.
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/482
let button = new Gtk.Button({ valign: Gtk.Align.CENTER,
no_show_all: true });
- button.add(new Gtk.Image({ icon_name: 'emblem-system-symbolic',
- icon_size: Gtk.IconSize.BUTTON,
- visible: true }));
+ button.set_image(new Gtk.Image({ icon_name: 'emblem-system-symbolic',
+ icon_size: Gtk.IconSize.BUTTON,
+ visible: true }));
button.get_style_context().add_class('circular');
hbox.add(button);